<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="com.psl.model.userlogin" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    userlogin userinfo = (userlogin) session.getAttribute("user");
    if (userinfo == null) {
        response.sendRedirect("/login.do");
    }%>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="/assets/css/text.css" rel="stylesheet" type="text/css">
    <link href="/assets/css/main.css" rel="stylesheet" type="text/css">
    <link href="/assets/css/content.css" rel="stylesheet" type="text/css">
    <script language="JavaScript" type="text/JavaScript">
    </script>
    <style>
        #title {
            border: 0px;
            margin-bottom: 10px;
        }

        #title td {
            height: 20px;
            line-height: 150%;
            background-image: url(/assets/img/dot_02.gif);
            background-position: left top;
            background-repeat: no-repeat;
            font-size: 15px;
            font-weight: bold;
            color: #CC0000;
            letter-spacing: 2px;
        }
    </style>
    <style media="print">
        .nobtn {
            display: none;
        }
    </style>
</head>
<body>


<table cellspacing="0" cellpadding="0" id="title" align="center">
    <tbody>
    <tr>
        <td nowrap="nowrap">
            山东宜利达流体设备有限公司铸件配件领料记录
        </td>
    </tr>
    </tbody>
</table>
<table width="99%" border="0" align="center" cellpadding="3" cellspacing="1" class="datalist">
    <tr>
        <th align="center">铸件/配件编号</th>
        <th height="25" align="center">铸件/配件名称</th>
        <th align="center">规格</th>
        <th align="center">商标</th>
        <th align="center">压力</th>
        <th align="center">领取数量</th>
        <th align="center">领取时间</th>
        <th align="center">领取部门</th>
    </tr>
    <c:forEach items="${xxxx}" var="z">
        <tr>
            <td height="25" align="center">${z.h_no}
            </td>
            <td height="25" align="center">${z.h_name}
            </td>
            <td height="25" align="center">${z.h_size}
            </td>
            <td height="25" align="center">${z.h_r}
            </td>
            <td height="25" align="center">${z.h_n}
            </td>
            <td height="25" align="center">${z.h_bring_num}
            </td>
            <td height="25" align="center">${z.h_bring_datetime}
            </td>
            <td height="25" align="center">
                <c:if test="${z.position_id==6}">
                    <c:out value="机加工车间"/>
                </c:if>
                <c:if test="${z.position_id==5}">
                    <c:out value="组装车间"/>
                </c:if>
            </td>
        </tr>
    </c:forEach>
    </tbody>
</table>
</body>
</html>